package org.example.seckill.api;

import org.example.core.utils.R;
import org.example.seckill.api.module.SkuInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

@FeignClient("product-service")
public interface ProductService {

    @PostMapping("/pms/backend/skuInfo/seckillSku")
    R<Map<Long, SkuInfo>> getSkuListByIds(@RequestBody List<Long> skuIds);
}
